package com.assessment.mapper;

import com.assessment.model.entity.AssessmentPeriod;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * 评测周期Mapper接口
 */
public interface AssessmentPeriodMapper extends BaseMapper<AssessmentPeriod> {

    /**
     * 查询当前正在进行的评测周期
     */
    @Select("SELECT * FROM t_assessment_period WHERE status = 1 AND deleted = 0 LIMIT 1")
    AssessmentPeriod findCurrentPeriod();
}
